package com.kgc.springboot.aviation.service.lvwenjia.impl;

import com.kgc.springboot.aviation.mapper.MenuMapper;
import com.kgc.springboot.aviation.pojo.Menu;
import com.kgc.springboot.aviation.pojo.MenuExample;
import com.kgc.springboot.aviation.service.lvwenjia.MenuService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author shkstart
 * @create 2021-01-05 19:22
 */
@Service
public class MenuServiceImpl implements MenuService {
    @Resource
    MenuMapper menuMapper;
    @Override
    public List<Menu> getMenuList() {
        MenuExample menuExample=new MenuExample();
        List<Menu> menus = menuMapper.selectByExample(menuExample);
        return menus;
    }
}
